package nacosconfig;

import nacosconfig.bean.SomeBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableDiscoveryClient
public class SpringcloudNacosConfigApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext ac=SpringApplication.run(SpringcloudNacosConfigApplication.class, args);

        SomeBean someBean=ac.getBean(SomeBean.class);

        System.out.println("someBean = " + someBean);
    }

}
